//
//  DCVoiceAdapter.h
//  DCVoiceKit
//
//  Created by 张涛 on 2020/11/17.
//  Copyright © 2020 zhangtao. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "DCVoiceKitMacro.h"
#import "DCVoiceKitConfig.h"
#import <DCUtilKit/DCUtilKit.h>
#import <iflyMSC/iflyMSC.h>

NS_ASSUME_NONNULL_BEGIN

@interface DCVoiceAdapter : NSObject<IFlySpeechRecognizerDelegate,IFlyPcmRecorderDelegate>

@property(nonatomic,strong) IFlySpeechRecognizer *iFlySpeechRecognizer;
@property(nonatomic,strong) IFlyPcmRecorder *pcmRecorder;
@property(nonatomic,copy) NSString *content;

@property(nonatomic,strong) void(^callBlock)(DCError * __nullable error,NSDictionary * __nullable data);

//开始听写
- (void) beginSpeech:(nullable void (^)(DCError *error,NSDictionary *data))callback;
//结束听写
- (void) endSpeech;

@end

NS_ASSUME_NONNULL_END
